package com.dada.config;

import com.dada.interceptor.SignInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 扩展MVC
 * Created by Jearton on 16/5/10.
 */
//@Configuration
//public class WebConfig extends WebMvcConfigurerAdapter {
//
//    @Autowired
//    private SignInterceptor signInterceptor;
//
//
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(signInterceptor).addPathPatterns("/**");
//    }
//}
